/**
 * @summary: 系统设置
 */

export default {
    name: 'setting',
    path: '/setting',
    menuLevel: 0,
    code: 'system',
    icon: 'setting',
    routes: [
        {
            path: '/setting/role',
            name: 'role',
            component: './Organization/Role/index',
            code: 'system:role'
        },
        {
            path: '/setting/role/add',
            name: 'addRole',
            editName: 'editRole',
            hideInMenu: true,
            component: './Organization/Role/AddRole',
            code: 'system:role:add'
        },
        {
            path: '/setting/ruleManagement',
            name: 'ruleManagement',
            component: './Setting/WebSite/RuleManagement/Index',
            code: 'system:ruleconfig'
        },
        {
            path: '/setting/ruleManagement/edit',
            name: 'editRuleManagement',
            component: './Setting/WebSite/RuleManagement/RuleEdit',
            code: 'system:ruleconfig',
            hideInMenu: true
        },
        {
            path: '/setting/ruleManagement/detail',
            name: 'detailRuleManagement',
            component: './Setting/WebSite/RuleManagement/RuleEdit',
            code: 'system:ruleconfig',
            hideInMenu: true
        },
        {
            path: '/setting/sysMenuManage',
            name: 'sysMenuManage',
            component: './Setting/SysMenu/index',
            code: 'system:menu:list',
            hideInMenu: true
        },
        {
            path: '/setting/sysMenuManage/addSysMenu',
            name: 'sysMenuManage',
            component: './Setting/SysMenu/AddMenu',
            code: 'system:menu:add',
            hideInMenu: true
        },
        {
            path: '/setting/sysMenuManage/editSysMenu',
            name: 'sysMenuManage',
            component: './Setting/SysMenu/EditMenu',
            code: 'system:menu:edit',
            hideInMenu: true
        },
        {
            path: '/setting/privilege',
            name: 'privilegeManagement',
            code: 'system:authorization',
            routes: [
                {
                    path: '/setting/privilege/functionManagement',
                    name: 'functionManagement',
                    component: './Setting/Privilege/FunctionManagement/List',
                    code: 'system:authorization:resource'
                },
                {
                    path: '/setting/privilege/functionManagement/edit',
                    name: 'functionManagementEdit',
                    component: './Setting/Privilege/FunctionManagement/Edit',
                    code: 'system:authorization:resource:edit',
                    hideInMenu: true
                },
                {
                    path: '/setting/privilege/functionManagement/detail',
                    name: 'functionManagementDetail',
                    component: './Setting/Privilege/FunctionManagement/Edit',
                    code: 'system:authorization:resource:detail',
                    hideInMenu: true,
                    openTab: true
                },
                {
                    path: '/setting/privilege/functionManagement/batchEdit',
                    name: 'functionManagementEdit',
                    component: './Setting/Privilege/FunctionManagement/Edit/BatchEdit',
                    code: 'system:authorization:resource:batch_edit',
                    hideInMenu: true
                },
                {
                    path: '/setting/privilege/newFunctionList',
                    name: 'newFunctionList',
                    component: './Setting/Privilege/NewFunction/List',
                    code: 'system:authorization:new'
                },
                {
                    path: '/setting/privilege/newFunctionList/detail',
                    name: 'newFunction',
                    component: './Setting/Privilege/NewFunction/Detail',
                    code: 'system:authorization:new:detail',
                    hideInMenu: true,
                    openTab: true
                },
                {
                    path: '/setting/privilege/newFunctionDeploy',
                    name: 'newFunctionDeploy',
                    component: './Setting/Privilege/NewFunction/Deploy',
                    code: 'system:authorization:new:edit',
                    hideInMenu: true
                },
                {
                    path: '/setting/privilege/templatemanagement',
                    name: 'templateManagement',
                    code: 'system:authorization:role',
                    component: './Setting/Privilege/TemplateManagement/List'
                },
                {
                    path: '/setting/privilege/edittemplate',
                    name: 'edittemplate',
                    component: './Setting/Privilege/TemplateManagement/Edit',
                    code: 'system:authorization:role:edit',
                    hideInMenu: true
                },
                {
                    path: '/setting/privilege/copytemplate',
                    name: 'copytemplate',
                    component: './Setting/Privilege/TemplateManagement/Edit',
                    code: 'system:authorization:role:copy',
                    hideInMenu: true
                },
                {
                    path: '/setting/privilege/newtemplate',
                    name: 'newtemplate',
                    component: './Setting/Privilege/TemplateManagement/Edit',
                    code: 'system:authorization:role:new',
                    hideInMenu: true
                },
                {
                    path: '/setting/privilege/templatemanagement/templateinfo',
                    name: 'templateinfo',
                    component: './Setting/Privilege/TemplateManagement/Info',
                    code: 'system:authorization:role:detail',
                    hideInMenu: true,
                    openTab: true
                }
            ]
        }
    ]
};
